﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="School_Management.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContent" runat="server">
    <h2>
        Log In
    </h2>
    <p>
        Please enter your username and password.
        <a href="Register.aspx">Register</a> if you don't have an account.
    </p>
    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" ForeColor="Red" ValidationGroup="RegisterUserValidationGroup"/>
    <h3>Account Information</h3>
            <p>
                <asp:Label ID="UserNameLabel" runat="server">Username:</asp:Label>
                <asp:TextBox ID="UserName" runat="server" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                        ErrorMessage="User Name is required." ToolTip="User Name is required." 
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="PasswordLabel" runat="server">Password:</asp:Label>
                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                        ErrorMessage="Password is required." ToolTip="Password is required." 
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:CheckBox ID="RememberMe" runat="server"/>
                <asp:Label ID="RememberMeLabel" runat="server" CssClass="inline">Keep me logged in</asp:Label>
            </p>
               
            <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                        ValidationGroup="LoginUserValidationGroup" onclick="LoginButton_Click"/>
            </p>
            <asp:Label ID="lblError" runat="server" Visible="false" Text="Inavlid Login Credentials"></asp:Label>
</asp:Content>

